<!DOCTYPE html>
<html lang="en">
<head>
<title>huangliusong</title>
<script src="./vue.js"></script>
</head>
 
<body>
	<div id="root">
	<table>
		<tbody>
			<tr is="row"></tr>
			<tr is="row"></tr>
			<tr is="row"></tr>
		</tbody>
	</table>
	</div>

	<script type="text/javascript">
		Vue.component('row',{
			data:function(){
				return {
					content:"huanglusong"
				}
			},
			template:'<tr><td>{{content }}</td></tr>'
		})
		var vm=new Vue({
			el:"#root"
		})
	</script>
</body>

</html>